'''
Created on Nov 25, 2010

@author: Polido
'''

from Angle import Angle

class JoystickData(object):
    '''
    classdocs
    '''

    def __init__(self, joystick, stop):
        '''
        Constructor
        '''
        self.angle = Angle(
                           joystick.get_axis(3),
                           joystick.get_axis(2),
                           joystick.get_axis(4))
        
        self.zVal = -joystick.get_axis(1)
        self.eStop = stop
        
class JoystickFakeData(object):
    '''
    classdocs
    '''

    def __init__(self, p, y, r, z):
        '''
        Constructor
        '''
        self.angle = Angle(p, y, r)
        
        self.zVal = z
        self.eStop = False
        
